package com.back_end.ClassTest;

public class JvmMemoryTest {
    public static void main(String[] args) {
        //-Xms1024m -Xmx1024m -XX:+PrintGCDetails
        long l1 = Runtime.getRuntime().maxMemory();
        long l2 = Runtime.getRuntime().totalMemory();

        System.out.println("max"+ l1 + "Byte  " + (l1/(double)1024/1024) + "MB" );
        System.out.println("total"+ l2 + "Byte  " + (l2/(double)1024/1024) + "MB" );

    }
}
